#pragma once
#include "serverbase.h"
#include <SFML/Network.hpp>
#include <list>

namespace cat
{
	class LocalServer :
		public cat::ServerBase
	{
	private:
		sf::TcpListener _listener;
		sf::TcpSocket* _newClient;
		std::list<sf::TcpSocket*> _clientSockets;

	public:
		LocalServer(void);
		~LocalServer(void);

		void think(void) override;
		void connect(std::string adress, int port) override;
		void disconnect(void) override;
	};
}

